{include file="public/header" /}
<blockquote class="layui-elem-quote">
    网站配置
</blockquote>
<div class="layui-raw">
    <div class="layui-col-xs12 layui-col-sm10 layui-col-md8 layui-col-lg6 layui-col-xl5">
        <form class="layui-form layui-form-pane kllxs-form" method="post">
            <div class="layui-form-item">
                <label class="layui-form-label">网站标题</label>
                <div class="layui-input-block">
                    <input type="text" name="title" autocomplete="off" placeholder="请输入网站标题" class="layui-input"
                        value="{$find.title.value|default=''}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">网站关键词</label>
                <div class="layui-input-block">
                    <input type="text" name="keywords" autocomplete="off" placeholder="请输入网站关键词" class="layui-input"
                        value="{$find.keywords.value|default=''}">
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <label class="layui-form-label">网站描述</label>
                <div class="layui-input-block">
                    <textarea name="description" placeholder="请输入网站描述"
                        class="layui-textarea">{$find.description.value|default=''}</textarea>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-inlink">
                    <button class="layui-btn" lay-submit lay-filter="kllxs-submit">保存</button>
                </div>
            </div>
        </form>
    </div>
</div>

{include file="public/footer" /}
<script>

    layui.use(["form", "popup"], function () {
        var form = layui.form;
        var popup = layui.popup;

        form.on('submit(kllxs-submit)', function (data) {
            var field = data.field; // 获取表单全部字段值

            popup.formSubmit("", field)

            return false; // 阻止默认 form 跳转
        })
    })
</script>